Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature upgrade three.js #397

Merged
merged 27 commits into from
Oct 26, 2024
Merged

Feature upgrade three.js #397

merged 27 commits into from
Oct 26, 2024

Conversation

kalwalt
Copy link
Member

@kalwalt kalwalt commented Oct 23, 2024

List of improvements to jsartoolkitNFT:

  • solve issue emsdk 3.1.50 cause builds errors #363 and Fix for issue with isnan WebARKitLib#29
  • upgrade packages and three.js (r169) with updated examples too
  • new build and dist libs
  • updated github actions scripts
  • node version from 16.18.0 to 20.18.0
  • new gltf example
  • improves to makem.js:
    • removed --memory-init-file 0 flag because removed from newer emsdk version
    • restore correct functionality of NO_LIBAR option
    • avoid use of var, using let or const instead.
    • added const BUILD_BASE_FILENAME = "artoolkitNFT"; to simply name libs formations.

- emcc version > 3.1.40 cause issue with isnan
- build .o files instead of .bc
- related to issue #363
@kalwalt kalwalt added bug Something isn't working enhancement New feature or request emscripten nodejs Three.js labels Oct 23, 2024
@kalwalt kalwalt self-assigned this Oct 23, 2024
@kalwalt
Copy link
Member Author

kalwalt commented Oct 25, 2024

action build script fails with error:

 In file included from /src/emscripten/WebARKitLib/lib/SRC/ARUtil/file_utils.c:90:
/src/emscripten/WebARKitLib/lib/SRC/ARUtil/unzip.h:27:10: fatal error: 'zlib.h' file not found
   27 | #include "zlib.h"
      |          ^~~~~~~~
1 error generated.
emcc: error: '/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr --sysroot=/emsdk/upstream/emscripten/cache/sysroot -DEMSCRIPTEN -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/fakesdl -Xclang -iwithsysroot/include/compat -I/src/emscripten/WebARKitLib/include -I/src/build/ -I/src/emscripten/ -I/src/emscripten/WebARKitLib/lib/SRC/KPM/FreakMatcher -Oz -D HAVE_NFT -D WITH_FILTERING=1 /src/emscripten/WebARKitLib/lib/SRC/ARUtil/file_utils.c -c -o /tmp/emscripten_temp_tsx7zski/file_utils_71.o' failed (returned 1)

exec error: 1
Built at Fri Oct 25 17:08:02 UTC 20[24](https://github.com/webarkit/jsartoolkitNFT/actions/runs/11522360757/job/32078339381#step:11:25)

i thought that zlib wasn't needed, maybe i hadn't did the test locally? i will check and in case if needed i will restore it.

@kalwalt
Copy link
Member Author

kalwalt commented Oct 25, 2024

action build script fails with error:

 In file included from /src/emscripten/WebARKitLib/lib/SRC/ARUtil/file_utils.c:90:
/src/emscripten/WebARKitLib/lib/SRC/ARUtil/unzip.h:27:10: fatal error: 'zlib.h' file not found
   27 | #include "zlib.h"
      |          ^~~~~~~~
1 error generated.
emcc: error: '/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr --sysroot=/emsdk/upstream/emscripten/cache/sysroot -DEMSCRIPTEN -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/fakesdl -Xclang -iwithsysroot/include/compat -I/src/emscripten/WebARKitLib/include -I/src/build/ -I/src/emscripten/ -I/src/emscripten/WebARKitLib/lib/SRC/KPM/FreakMatcher -Oz -D HAVE_NFT -D WITH_FILTERING=1 /src/emscripten/WebARKitLib/lib/SRC/ARUtil/file_utils.c -c -o /tmp/emscripten_temp_tsx7zski/file_utils_71.o' failed (returned 1)

exec error: 1
Built at Fri Oct 25 17:08:02 UTC 20[24](https://github.com/webarkit/jsartoolkitNFT/actions/runs/11522360757/job/32078339381#step:11:25)

i thought that zlib wasn't needed, maybe i hadn't did the test locally? i will check and in case if needed i will restore it.

Humbling a bit i didn't know if the unzip.h file is really needed or used, maybe i will can remove it in another release. i will open an issue for this.

@kalwalt kalwalt merged commit f0343ae into dev Oct 26, 2024
3 checks passed
kalwalt added a commit that referenced this pull request Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working emscripten enhancement New feature or request nodejs Three.js
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant